package com.it;

import com.sun.org.apache.bcel.internal.util.ByteSequence;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

import java.util.logging.SimpleFormatter;

/**
 * ClassName:test
 * Package:com.it
 * Description: 描述信息
 *
 * @date:2022/3/31 17:11
 * @author:动力节点
 */
public class test {

    public static void main(String[] args) {
        String password = "admin";
        SimpleHash simpleHash = new SimpleHash("MD5", ByteSource.Util.bytes(password),ByteSource.Util.bytes("salt"),3);
        System.out.println(simpleHash); //18435ea35cca06b765e29759b0a085b5

    }
}
